
<div id="main">

</div><!--End main-->
<%= form_for(@product) do |f| %>
  <% if @product.errors.any? %>
	<div id="error_explanation">
	  <h4><%= pluralize(@product.errors.count, "error") %> :</h4>

	  <ul>
	  <% @product.errors.full_messages.each do |msg| %>
		<li><%= msg %></li>
	  <% end %>
	  </ul>
	</div>
  <% end %>
  <div class="field">
	<%= f.label :Name %>
	<%= f.text_field :Name %>
  </div>
  

	<div class="field">
	<%= f.label :Description, "#{t :mota}" %>
	<%= raw(f.text_area :Description, :size => "260x10") %>
  </div>


  <div class="field">
  	<% @category= Category.all %>
	<%= f.label :category_id,"#{t :theloai}" %>
	<%= f.select :category_id, @category.map {|p| [ p.Name, p.id ] } , { :include_blank => true } %>
  </div>
  
  <div class="actions">
	<%= f.submit "#{t :capnhat}" %>
  </div>
<% end %>